package com.kongjs.application.controller.page;

import com.kongjs.application.model.entity.Comments;
import com.kongjs.application.service.ICommentsService;
import com.kongjs.common.rest.annotation.Page;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;

import java.util.Optional;

@Page
@Controller
@RequestMapping("/comments")
public class CommentPageController {
    @Resource
    private ICommentsService commentsService;

    @GetMapping("/{id}")
    public String getById(@PathVariable Long id) {
        return "comments/index";
    }


}
